<?php

namespace api\models;

use Yii;

/**
 * This is the model class for table "realname".
 *
 * @property integer $id
 * @property string $homeTown
 * @property string $phone
 * @property string $userCardImg
 * @property integer $uid
 */
class Realname extends \yii\db\ActiveRecord
{


    public $file;


    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'realname';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['homeTown', 'phone', 'userCardImg', 'uid'], 'required'],
            [['uid'], 'integer'],
            [['homeTown', 'userCardImg'], 'string', 'max' => 255],
            [['phone'], 'string', 'max' => 36],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'homeTown' => '家乡',
            'phone' => '手机号',
            'userCardImg' => '证件照片',
            'uid' => '用户id',
        ];
    }
}
